
package co.chuangdian.oflauncher.setting;

import co.chuangdian.oflauncher.OFActivity;
import co.chuangdian.oflauncher.R;

import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.widget.TextView;
import cn.onekit.android.ACTIVITY;

public class AboutActivity extends OFActivity{
	private TextView about_version;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.setting_about);
		about_version=(TextView) findViewById(R.id.versionNumber);
		about_version.setText(getVersion());
	}
	private String getVersion(){
		try{
			PackageInfo info=getPackageManager().getPackageInfo(getPackageName(), 0);
			return""+info.versionName;
		}catch(NameNotFoundException e){
			e.printStackTrace();
			return "Version";
		}
	}
}
